package com.jcxh.sg_exam.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 * @TableName shicao
 */
@TableName(value ="shicao")
@Data
@ColumnWidth(18)
@HeadRowHeight(38)
public class Shicao implements Serializable {
    /**
     *
     */
    @ExcelProperty(value = "序号")
    @TableId(type = IdType.AUTO)
    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空")
    @ExcelProperty(value = "类型")
    private String type;

    /**
     * 题目
     */
    @ColumnWidth(100)
    @NotBlank(message = "题目不能为空")
    @ExcelProperty(value = "题目")
    private String title;


    /**
     * 题目
     */
    @ColumnWidth(100)
    @NotBlank(message = "题目不能为空")
    @ExcelProperty(value = "答案")
    private String answer;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}
